<%-- 
    Document   : home
    Created on : 2013-6-12, 18:02:30
    Author     : Danny Lee CMTI
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>

<html>
    <head>
        <%@include file="/WEB-INF/jspf/top_easyui_mobile.jspf" %>
        <title>手机版登录页面</title>
        <link rel="stylesheet" href="${contextPath}/m/resources/css/home.css"/>
    </head>
    <body>
        <div class="easyui-navpanel">
            <header>
                <div class="m-toolbar">
                    <span class="m-title">Login to System</span>
                </div>
            </header>
            <div style="margin:20px auto;width:100px;height:100px;border-radius:100px;overflow:hidden">
                <img src="${contextPath}/resources/images/login1.jpg" style="margin:0;width:100%;height:100%;">
            </div>
            <s:form action="${contextPath}/login" method="post" id="loginFm" commandName="sysUser">
                <input type="hidden" name="codeInp" value=""/>
                <div style="padding:0 20px">
                    <div style="margin-bottom:10px">
                        <input class="easyui-textbox" data-options="prompt:'请输入用户名',iconCls:'icon-man'" style="width:100%;height:38px" name="account">
                    </div>
                    <div>
                        <input class="easyui-passwordbox" data-options="prompt:'请输入密码'" style="width:100%;height:38px" name="password">
                    </div>
                    <div class="error-tip">
                        <s:errors path="*" id="errorSpan" cssStyle="color: red;font-size:15px;"/>
                    </div>
                    <div style="text-align:center;margin-top:30px">
                        <a href="#" class="easyui-linkbutton" style="width:100%;height:40px" id="btnLogin"><span style="font-size:16px">登录</span></a>
                    </div>
                    <div style="text-align:center;margin-top:30px">
                        <a href="#" class="easyui-linkbutton" plain="true" outline="true" style="width:100px;height:35px"><span style="font-size:16px">注册</span></a> 
                    </div>
                </div>
            </s:form>
        </div>
        <script>
            $(function () {
                $("#btnLogin").click(function () {
//                    $.messager.alert('处理');
                    $("#loginFm").submit();
                });

            })
        </script>
    </body>
</html>
